package com.sanss.trapParse.info;

public class HeartbeatStatus {

	private String oid;

	private int expireSec;

	private long lastBeatTime;

	private boolean changed;// determine whether to raise alarm or not

	private String sender;

	private boolean alarmFlag;

	public void setOid(String oid) {
		this.oid = oid;
	}

	public String getOid() {
		return oid;
	}

	public void setExpireSec(int expireSec) {
		this.expireSec = expireSec;
	}

	public int getExpireSec() {
		return expireSec;
	}

	public void setLastBeatTime(long lastBeatTime) {
		this.lastBeatTime = lastBeatTime;
	}

	public long getLastBeatTime() {
		return lastBeatTime;
	}

	public void setChanged(boolean changed) {
		this.changed = changed;
	}

	public boolean getChanged() {
		return changed;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getSender() {
		return sender;
	}

	public void setAlarmFlag(boolean alarmFlag) {
		this.alarmFlag = alarmFlag;
	}

	public boolean getAlarmFlag() {
		return alarmFlag;
	}

	public HeartbeatStatus() {
		lastBeatTime = 0;// init
		alarmFlag = false;
	}

}
